import os


basedir = os.path.abspath(os.path.dirname(__file__))

class Config(object):

    SQLALCHEMY_DATABASE_URL = 'mysql+pymysql://root:123@localhost:3306/111'
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    SQLALCHEMY_ECHO = True
    SECRET_KEY = "FNDSNCVKSNCVLSNCLSCsss"

    # 数据库配置：
    # Flask数据库的设置: app.config['SQLALCHEMY_DATABASE_URI'] = "mysql://账号:密码@数据库ip地址:端口号/数据库名"
    # app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://root:123@localhost:3306/111'
    # # 动态追踪修改设置，如未设置只会提示警告, 不建议开启
    # app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
    # # 查询时会显示原始SQL语句
    # app.config['SQLALCHEMY_ECHO'] = True

    # 数据库配置：
    # Flask数据库的设置: app.config['SQLALCHEMY_DATABASE_URI'] = "mysql://账号:密码@数据库ip地址:端口号/数据库名"
    # app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://root:123@localhost:3306/111'
    # # 动态追踪修改设置，如未设置只会提示警告, 不建议开启
    # app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
    # # 查询时会显示原始SQL语句
    # app.config['SQLALCHEMY_ECHO'] = True